#ifndef __BER__
#define __BER__


typedef struct bercode {
	unsigned char buf[5];	//max int32 len
	unsigned char len;
} bercode_t;

extern int ber_word16_encode(unsigned short d, bercode_t *ber);
extern int ber_word16_decode(unsigned short *d, bercode_t *ber);
extern void des_calc(unsigned char *psrc, unsigned char *pdst);

#endif
